package com.relax.mybatis.model;

import com.relax.mybatis.annotation.EncryptField;
import com.relax.mybatis.annotation.SensitiveField;
import com.relax.mybatis.annotation.SensitiveJSONField;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * @author relax
 * @date 2022/07/05
 * @desc 字段缓存属性
 */
@Getter
@Setter
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class FieldCacheProperty {

    /**
     * 字段名
     */
    private String fieldName;

    /**
     * 加密/解密
     */
    private EncryptField encryptField;

    /**
     * 脱敏
     */
    private SensitiveField sensitiveField;

    /**
     * json脱敏
     */
    private SensitiveJSONField sensitiveJSONField;

}
